package com.ruoyi.wx.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 账号对象 account
 * 
 * @author wt
 * @date 2020-12-13
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("account")
public class Account implements Serializable {

private static final long serialVersionUID=1L;


    /** $column.columnComment */
    @TableId(value = "id")
    @TableField(value = "`id`")
    private Long id;

    /** 账户 */
    @Excel(name = "账户")
    @TableField(value = "`account`")
    private String account;

    /** 密码 */
    @Excel(name = "密码")
    @TableField(value = "`pwd`")
    private String pwd;

    /** 1启用0禁用,2出租中,3锁定中等待支付,4是账号封禁 */
    @Excel(name = "1启用0禁用,2出租中,3锁定中等待支付,4是账号封禁")
    @TableField(value = "`STATE`")
    private Long state;

    /** 1是普通账号,2是vip账号 */
    @Excel(name = "1是普通账号,2是vip账号")
    @TableField(value = "`TYPE`")
    private Long type;

    /** 管理员id(预留) */
    @Excel(name = "管理员id(预留)")
    @TableField(value = "`user_info_id`")
    private Long userInfoId;

    /** 微信id(预留) */
    @Excel(name = "微信id(预留)")
    @TableField(value = "`wx_id`")
    private String wxId;

    /** 创建时间 */
    @TableField(value = "`create_time`")
    private Date createTime;

    /** 更新时间 */
    @TableField(value = "`update_time`")
    private Date updateTime;

    /** 解除封禁时间 */
    @Excel(name = "解除封禁时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "`unblocking_time`")
    private Date unblockingTime;

    /** 合租人id */
    @Excel(name = "合租人id")
    @TableField(value = "`shared_tenant_id`")
    private Long sharedTenantId;



    @TableField(exist = false)
    protected String gameName;
}
